﻿using Ct.StudentProject.Data;
using Ct.StudentProject.Myself;

namespace Ct.StudentProject.Console
{
    /// <summary>
    /// 操作执行结果
    /// </summary>
    public class CtResult
    {
       
        public CtResult() { }

        /// <summary>
        /// 操作代号
        /// </summary>
        public string Code
        {
            get;
            set;
        }
        /// <summary>
        /// 操作反馈消息
        /// </summary>
        public string Message
        {
            get;
            set;
        }

    }
    public class CtResult<T> : CtResult
    {
        //StudentDatabase db = new StudentDatabase();
        //RegisterStudent stu = new RegisterStudent();
        public CtResult() { }

        /// <summary>
        /// 返回数据
        /// </summary>
        public T Data//(int IDNumber)
        {
            //stu = db.FindthisUser(IDNumber);
            //return stu;
            get;
            set;
        }
    }
}
